Inline code

Inline code formats text using a monospace font to indicate technical content in a sentence such as code, paths, etc.

Example of inline code being used to illustrate file system paths as well as shell commands (git in this case).

To insert an inline code:

Code blocks

Code blocks display a snippet of code as a dedicated block:

A code block with JavaScript syntax highlight enabled.

Note that these are not meant for very large portions of code. Use the dedicated Code note type instead.

See the dedicated documentation for more information: Code blocks

Keyboard shortcuts

This allows marking a portion of text as a shortcut key.

To apply this style, press the button in group from the Formatting toolbar. On the floating toolbar, the buttons appear when selecting a text.

Alternatively, press the Ctrl+Alt+K combination to apply keyboard shortcut formatting to the current text selection.

The formatting can be removed by pressing again the button (from the UI or from the keyboard), or by using the Remove formatting button.